Repository navigation
fix(opencode-claimant): raise poll gate timeout 30s -> 300s so live fires pass the gate - #13134
Merged
Merged
Conversation
…ires pass the gate poll.py's end-to-end latency (sequential turso ledger reads + broker queries + the growing OpenCode session store) measures 55-100s wall with ~2s CPU, permanently above claimant.py's hard-coded 30s gate timeout. Every live fire failed closed as gate_unknown and launched nothing, with a real candidate (task 20708) waiting unbound and cap_room=36 (#13112). Regression note: the timeout side moved, not the poll side. 300s covers the aggregate of poll.py's per-call timeouts (15s server GET, 30s broker POSTs) plus session-store growth, ~3x margin over the observed ~100s worst case. Fail-closed behavior is unchanged: a poll that exceeds 300s or exits non-zero still ends the fire as gate_unknown. The single-instance lock keeps overlapping fires impossible, so a slow poll only delays a fire; it cannot double-launch. Reducing poll.py's own latency (parallelizing its independent reads) remains a separate follow-up. Cherry-picked from the parked, never-pushed commit 8e47216 (branch parked/opencode-claimant-poll-timeout-20261122 in the laptop primary), left unlanded by its author; landed here via worktree + PR for the #13112 acceptance.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Raises the opencode-claimant's poll gate timeout in
run_poll()(pm-stack/opencode-claimant/claimant.py) from 30s to 300s.Why (#13112)
poll.py's end-to-end latency measures 55–100s wall with ~2s CPU (sequential turso ledger reads + broker queries + the growing OpenCode session store), permanently above the hard-coded 30s gate timeout. Every live claimant fire failed closed as
gate_unknownand launched nothing — 21 of the last 40 fires — while a real candidate (task 20708) waited unbound with cap_room=36.Regression note
The timeout side moved, not the poll side. 300s covers the aggregate of poll.py's per-call timeouts (15s server GET, 30s broker POSTs) plus session-store growth, ~3x margin over the observed ~100s worst case. Fail-closed behavior is unchanged: a poll exceeding 300s or exiting non-zero still ends the fire as
gate_unknown. The single-instance lock keeps overlapping fires impossible, so a slow poll only delays a fire; it cannot double-launch. Reducing poll.py's own latency (parallelizing its independent reads) remains a separate follow-up.Provenance
Cherry-picked from the parked, never-pushed commit
8e472164d4cf(branchparked/opencode-claimant-poll-timeout-20261122in the laptop primary), left unlanded by its author; landed here via worktree + PR for the #13112 acceptance.Verification
run_hermetic_tests.py): 217 tests, 215 pass, 2 errors — identical result at the base SHA3a941eff430; both errors are pre-existing environment failures in a git-init test helper (TestCodeSourceFireLog._make_clone), untouched by this change.This PR intentionally carries no closing keyword for #13112: the issue's acceptance also wants live fires passing the gate, which can only be observed after this lands on the primary clone. #13112 will be closed with that evidence once seen.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.